/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package xcore.model;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

import xcore.constraint.XIntVar;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>XRef Feature</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link xcore.model.XRefFeature#getXReference <em>XReference</em>}</li>
 *   <li>{@link xcore.model.XRefFeature#getFrom <em>From</em>}</li>
 *   <li>{@link xcore.model.XRefFeature#getTo <em>To</em>}</li>
 *   <li>{@link xcore.model.XRefFeature#getCardinality <em>Cardinality</em>}</li>
 * </ul>
 * </p>
 *
 * @see xcore.model.ModelPackage#getXRefFeature()
 * @model
 * @generated
 */
public interface XRefFeature extends EObject {
	/**
	 * Returns the value of the '<em><b>XReference</b></em>' container reference.
	 * It is bidirectional and its opposite is '{@link xcore.model.XReference#getFeatures <em>Features</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>XReference</em>' container reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>XReference</em>' container reference.
	 * @see #setXReference(XReference)
	 * @see xcore.model.ModelPackage#getXRefFeature_XReference()
	 * @see xcore.model.XReference#getFeatures
	 * @model opposite="features" required="true" transient="false"
	 * @generated
	 */
	XReference getXReference();

	/**
	 * Sets the value of the '{@link xcore.model.XRefFeature#getXReference <em>XReference</em>}' container reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>XReference</em>' container reference.
	 * @see #getXReference()
	 * @generated
	 */
	void setXReference(XReference value);

	/**
	 * Returns the value of the '<em><b>From</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>From</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>From</em>' reference.
	 * @see #setFrom(XClass)
	 * @see xcore.model.ModelPackage#getXRefFeature_From()
	 * @model required="true"
	 * @generated
	 */
	XClass getFrom();

	/**
	 * Sets the value of the '{@link xcore.model.XRefFeature#getFrom <em>From</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>From</em>' reference.
	 * @see #getFrom()
	 * @generated
	 */
	void setFrom(XClass value);

	/**
	 * Returns the value of the '<em><b>To</b></em>' reference list.
	 * The list contents are of type {@link xcore.model.XClass}.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>To</em>' reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>To</em>' reference list.
	 * @see xcore.model.ModelPackage#getXRefFeature_To()
	 * @model required="true"
	 * @generated
	 */
	EList<XClass> getTo();

	/**
	 * Returns the value of the '<em><b>Cardinality</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Cardinality</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Cardinality</em>' containment reference.
	 * @see #setCardinality(XIntVar)
	 * @see xcore.model.ModelPackage#getXRefFeature_Cardinality()
	 * @model containment="true" required="true"
	 * @generated
	 */
	XIntVar getCardinality();

	/**
	 * Sets the value of the '{@link xcore.model.XRefFeature#getCardinality <em>Cardinality</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Cardinality</em>' containment reference.
	 * @see #getCardinality()
	 * @generated
	 */
	void setCardinality(XIntVar value);

} // XRefFeature
